import Vue from 'vue'
import App from './App.vue'
//使用路由1.引入路由
import VueRouter from 'vue-router'
import ABody from './components/ABody.vue'
import AFoot from './components/AFoot.vue'
import AHead from './components/AHead.vue'

//2.安装注册
Vue.use(VueRouter)
Vue.config.productionTip = false
//3.创建路由对象
const router = new VueRouter({
  //路由规则, 一个对象
  routes: [
{path: '/ABody', component: ABody},
{path: '/AFoot', component: AFoot},
{path: '/AHead', component: AHead},
  ]
})

new Vue({
  render: h => h(App),
  //4.注入到Vue实例
  router: router
}).$mount('#app')